home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / RLaB / help / round < prev    next >
Text File  |  1994-04-25  |  584b  |  19 lines

  1. round:
  2.  
  3. Syntax:    round ( A )
  4.  
  5. Description:
  6.  
  7.     Round returns the nearest integer value to its floating point
  8.     argument X as a double-precision floating point number. The
  9.     returned value is rounded according to the currently set
  10.     machine rounding mode. If round-to-nearest (the default mode)
  11.     is set and the difference between the function argument and
  12.     the rounded result is exactly 0.5, then the result will be
  13.     rounded to the nearest even integer. 
  14.  
  15.     Round uses the libm.a function rint. If your machine does not
  16.     have rint, then the supplied rint is used.
  17.  
  18. See Also: ceil, int, floor
  19.